package org.example.j2024_11_28.service;

import org.example.j2024_11_28.mapper.StudentMapper;
import org.example.j2024_11_28.model.StudentInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StudentService {
    @Autowired
    private StudentMapper mapper ;
    public List<StudentInfo> queryStudents(){
        return mapper.queryStudents();
    }
    public List<StudentInfo> queryStudentForId(Integer studentId){
        return mapper.queryStudentForId(studentId);
    }
}
